summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2023-12-28 12:35:28 +0100
committerMike Lothian <mike@fireburn.co.uk>2024-01-22 02:30:44 +0100
commitf854ffd0158a3ed2946c18011b4f5f426fdabc07 (patch)
treeb922c016a92693b9e99fe5725f637ee453091d3f
parentMerge pull request #12544 from zhaobot/tx-update-20240101021433 (diff)
downloadyuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar.gz
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar.bz2
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar.lz
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar.xz
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.tar.zst
yuzu-f854ffd0158a3ed2946c18011b4f5f426fdabc07.zip
-rw-r--r--.gitmodules3
-rw-r--r--CMakeLists.txt6
-rw-r--r--externals/CMakeLists.txt5
m---------externals/Vulkan-Utility-Libraries0
-rw-r--r--src/video_core/CMakeLists.txt2
5 files changed, 15 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index e65997afc..52256d86f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -64,3 +64,6 @@
[submodule "oaknut"]
path = externals/oaknut
url = https://github.com/merryhime/oaknut
+[submodule "Vulkan-Utility-Libraries"]
+ path = externals/Vulkan-Utility-Libraries
+ url = https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cd6b2108..eb26fbfd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,8 @@ option(YUZU_USE_BUNDLED_FFMPEG "Download/Build bundled FFmpeg" "${WIN32}")
option(YUZU_USE_EXTERNAL_VULKAN_HEADERS "Use Vulkan-Headers from externals" ON)
+option(YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES "Use Vulkan-Utility-Libraries from externals" ON)
+
option(YUZU_USE_QT_MULTIMEDIA "Use QtMultimedia for Camera" OFF)
option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF)
@@ -308,6 +310,10 @@ if (NOT YUZU_USE_EXTERNAL_VULKAN_HEADERS)
find_package(Vulkan 1.3.274 REQUIRED)
endif()
+if (NOT YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
+ find_package(VulkanUtilityLibraries REQUIRED)
+endif()
+
if (ENABLE_LIBUSB)
find_package(libusb 1.0.24 MODULE)
endif()
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 407c5c640..c84bedb2d 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -154,6 +154,11 @@ if (YUZU_USE_EXTERNAL_VULKAN_HEADERS)
add_subdirectory(Vulkan-Headers)
endif()
+# Vulkan-Utility-Libraries
+if (YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
+ add_subdirectory(Vulkan-Utility-Libraries)
+endif()
+
# TZDB (Time Zone Database)
add_subdirectory(nx_tzdb)
diff --git a/externals/Vulkan-Utility-Libraries b/externals/Vulkan-Utility-Libraries
new file mode 160000
+Subproject 524f8910d0e4a5f2ec5961996b23e5b74b95cb1
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index c22c7631c..3d7a59f87 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -303,7 +303,7 @@ target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS})
add_dependencies(video_core host_shaders)
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
-target_link_libraries(video_core PRIVATE sirit Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
+target_link_libraries(video_core PRIVATE sirit Vulkan::Headers Vulkan::UtilityHeaders GPUOpen::VulkanMemoryAllocator)
if (ENABLE_NSIGHT_AFTERMATH)
if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK})